package com.aster.common.api.service;

import com.aster.common.api.domain.TbGeneralUserInfo;
import com.aster.common.api.dto.DtoGeneralUserInfo;
import com.aster.common.base.BaseService;
import com.aster.common.exception.ServiceException;

/**
 * 
 * <br>
 * <b>功能：</b>TbGeneralUserInfoService<br>
 */
public interface GeneralUserInfoService extends BaseService {

    /**
     * 根据openId获取用户信息
     * @param openId
     * @return
     */
    TbGeneralUserInfo getUserByOpenId(String openId);

    /**
     * 根据
     * @param tel
     * @return
     */
    TbGeneralUserInfo getUserByTel(String tel);

    /**
     * 保存陪护用户信息
     * @param tbGeneralUserInfo
     */
    void saveUserInfo(TbGeneralUserInfo tbGeneralUserInfo) throws ServiceException;
}
